<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<script type="text/javascript" src="../../../src/base/_core.js"></script>
<script type="text/javascript" src="../../../src/base/string.js"></script>
<script type="text/javascript" src="../../../src/base/object.js"></script>
<script type="text/javascript" src="../../../src/base/date.js"></script>
<script type="text/javascript" src="../../../lib/qwrap-debug.js"></script>
<body>
<script type="text/javascript">

    /**
     * chrome:
     *
     fn1:52
     fn2:309
     fn3:312

     ie7:
     LOG: 75
     LOG: 104
     LOG: 113

     ff3.6:
     275
     410
     499

     */





    function fn1(){
        line.formatDate(new Date,'yyyy-mm-dd');
    }

    function fn2(){
        QW.DateH.format(new Date,'yyyy-mm-dd')
    }

    function fn3(){
        line.formatDate2(new Date,'yyyy-mm-dd');
    }

    var timeState=[];
    timeState[0]=+new Date();
    for(var i=0; i<10000; i++){
        fn1();
    }

    timeState[1]=+new Date()-timeState[0];
    console.log(timeState[1]);


    timeState[0]=+new Date();
    for(var i=0; i<10000; i++){
        fn2();
    }
    timeState[1]=+new Date()-timeState[0];
    console.log(timeState[1]);

    timeState[0]=+new Date();
    for(var i=0; i<10000; i++){
        fn3();
    }
    timeState[1]=+new Date()-timeState[0];
    console.log(timeState[1]);

</script>
</body>
</html>